import request from '@/utils/request'

// 文件列表
export function selectAllDepts () {
    return request({
        url: `/cockpit/selectAllDepts`,
        method: 'get',
    })
}

// 统计装备配发率
export function statisticsEquipmentAllotment () {
    return request({
        url: `/cockpit/statisticsEquipmentAllotment`,
        method: 'get',
    })
}


// 按年份统计人员变更、在职情况
export function statisticsChangeInfoAndMilitaryServiceStatus () {
    return request({
        url: `/cockpit/statisticsChangeInfoAndMilitaryServiceStatus`,
        method: 'get',
        
    })
}

// 装备类别情况
export function statisticsEquipmentInfos () {
    return request({
        url: `/cockpit/statisticsEquipmentInfos`,
        method: 'get',
    })
}

// 人员工作状态
export function statisticsWorkingStatus (query) {
    return request({
        url: `/cockpit/statisticsWorkingStatus`,
        method: 'get',
        params: query
    })
}

// 人员在职、满期统计
export function statisticsWithMilitaryServiceStatus (query) {
    return request({
        url: `/cockpit/statisticsWithMilitaryServiceStatus`,
        method: 'get',
        params: query
    })
}

// 人员配备,兵种统计
export function statisticsWithMajorCode (query) {
    return request({
        url: `/cockpit/statisticsWithMajorCode`,
        method: 'get',
        params: query
    })
}

// 装备完好率
export function statisticsTotalEquipmentIntegrityRate () {
    return request({
        url: `/cockpit/statisticsTotalEquipmentIntegrityRate`,
        method: 'get',
    })
}


// 人才库统计
export function statisticsPersonalTalentSummary (query) {
    return request({
        url: `/cockpit/statisticsPersonalTalentSummary`,
        method: 'get',
        params: query
    })
}

// 本月配发总次数
export function statisticsMonthEquipmentAllotmentTimes () {
    return request({
        url: `/cockpit/statisticsMonthEquipmentAllotmentTimes`,
        method: 'get',
    })
}

// 本月配发统计
export function statisticsMonthEquipmentAllotment (month) {
    return request({
        url: `/cockpit/statisticsMonthEquipmentAllotment/${month}`,
        method: 'get',
    })
}

// 根据装配来源统计配发情况
export function statisticsEquipmentAllotmentBySourceId () {
    return request({
        url: `/cockpit/statisticsEquipmentAllotmentBySourceId`,
        method: 'get',
    })
}
